#include <stdio.h>
main()
{  			  	
    int y, m;
    printf("Please Input the Date:");
    scanf("%d-%d", &y, &m); //1
    switch (m)
    {  			  	
    case 1:
    case 3:
    case 5:
    case 7:
    case 8:
    case 10:
    case 12:
        printf("%d days", 31);
        break;
    case 2:
        if ((y % 4 == 0 && y % 100 != 0) || (y % 400 == 0))//1
            printf("%d days", 29); //1
        else//1
            printf("%d days", 28); //1
        break;
    case 4:
    case 6:
    case 9:
    case 11:
        printf("%d days", 30);
        break;
    default://1
        printf("Input error!\n");//1
    }
}